<template>
    <div>
      <h1>权益列表</h1>
      <table class="table table-primary">
        <tbody>
            <tr class="bg-primary">
                <td>编号</td>
                <td>权益名称</td>
                <td>操作</td>
            </tr>
            <tr v-for="item in list":key="item.Id">
                <td>{{item.Id}}</td>
                <td>{{item.RightName}}</td>
                <td>操作</td>
            </tr>
        </tbody>
      </table>
    </div>
</template>

<script setup lang="ts">
//响应式数据
import {ref,reactive,onMounted} from 'vue';
import axios from 'axios';
import moment from 'moment';
//跳转
import {useRouter} from 'vue-router';
const router=useRouter();


let list:any=ref([]);

onMounted(()=>{
    getRight();
})

const getRight=()=>{
    axios({
        url:'https://localhost:7193/api/Member/GetMuberlist',
        method:'get',
    })
    .then(res=>{
        console.log(res);
        Object.assign(list.value,res.data);
    })
}
</script>

<style scoped>

</style>